Hi guys, how can i "refresh" a skip list? My problem is when i delete a entry in a list, the entry isn't realy deleted... snippet of my code:
Skip final = createString()
//.. fill final...
string k = ""
for k in final do
{
if(something) // like begins "k" with an "_"
{
Skip ski = splitVar(k, ";") //function to split "k" by a delimeter returns skip list
string x = ""
for x in ski do
{
if(x == k) //e.g.
{
print "1: "k "\n"
delete(final, k)
}
}
print "2: "k "\n"
delete(ski)
}
else
{
//something
}
}
My Output : 1: /TEST 2: /TEST
Thanks for help... meinhana - Wed Oct 26 04:14:29 EDT 2016 |
Re: Refresh Skip list I think you might have wrong expectations. What do you expect to happen? You are doing print "1:" k "\n" ... print "2:" k "\n" And of course you get the same thing. You are probably deleting the entry from the skip list, but this might not affect the loop (since modifying a skip while iterating over it might not give you the expected results). Regards, Mathias |
Re: Refresh Skip list Well that's logically :D Sry... Now i change my code Thank you |